package sk.stuba.fiit.clientApp.service;

import java.io.IOException;
import java.security.KeyPair;
import java.security.PrivateKey;
import java.security.PublicKey;
import java.security.cert.X509Certificate;

public interface CertificateService {

	public  X509Certificate generateRootSelfSignedCertificate(KeyPair pair)	throws Exception ;
	public  X509Certificate generateCertificateAuthorityCertificate(PublicKey intKey, PrivateKey caKey, X509Certificate caCert) throws Exception;
	public  X509Certificate generateEndEntityCert(PublicKey entityKey, PrivateKey caKey, X509Certificate caCert)  throws Exception;
	public X509Certificate getCertificateBySerialNum(String serialNum)throws Exception;
	public X509Certificate getCertificateByIssuer(String string) throws Exception;
}
